
<?php if (count($teams_new) > 0): ?>
    <table class = "klubid">
        <tr>
            <th colspan="3">Uued klubid</th>
        </tr>
        <?php
        echo form_open('files/add_teams');
        echo form_hidden('full_path', $full_path);
        echo form_submit('add_teams', 'Lisa uued klubid');
        echo form_close();
        ?>

        <tr>
            <th>Nimi</th>
            <th>Lühendatud nimi</th>
            <th>Lühend</th>
        </tr>
        <?php
        foreach ($teams_new as $team) {
            echo $team->toTableRow();
        }
        ?>
    </table>
    <?php else:
    echo '<h3>Ühtegi uut klubi ei leitud</h3><br />';
    ?>
<?php endif; ?>


<?php if (count($teams_old) > 0): ?>
    <table class = "klubid">
        <tr>
            <th colspan="3">Failist leitud olemasolevad klubid</th>
        </tr>
        <tr>
            <th>Nimi</th>
            <th>Lühendatud nimi</th>
            <th>Lühend</th>
        </tr>
        <?php
        foreach ($teams_old as $team) {
            echo $team->toTableRow();
        }
        ?>
    </table>
<?php endif; ?>